﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Com.JunCaiSoft.Common.Verification
{
    public class Telephone
    {
        public static bool PhoneNumberCheck(string str_handset)
        {
            return System.Text.RegularExpressions.Regex.IsMatch(str_handset, @"^\d{4}+[-]+\d{8}$|^\d{8}$");
        }
    }
}
